package com.wn.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author wuqingting
 * @date 2022/10/21
 */
public class DateFormatUtil {
    public static String dateToString(Date date){
        if (date==null){
            return "";
        }
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String s = format.format(date);
        return s;
    }
}
